package com.dingup.paike.bean.dtobean;

/**
 * Created by wancheng on 2018/12/3.
 */
public class TeacherProcessInstanceDTO implements Cloneable {

    private String userId;
    private String processInstanceId;
    private String unit;
    private Long fromTime;
    private Long toTime;
    private Double durationInHour;
    private String day;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Long getFromTime() {
        return fromTime;
    }

    public void setFromTime(Long fromTime) {
        this.fromTime = fromTime;
    }

    public Long getToTime() {
        return toTime;
    }

    public void setToTime(Long toTime) {
        this.toTime = toTime;
    }

    public Double getDurationInHour() {
        return durationInHour;
    }

    public void setDurationInHour(Double durationInHour) {
        this.durationInHour = durationInHour;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TeacherProcessInstanceDTO that = (TeacherProcessInstanceDTO) o;

        if (!userId.equals(that.userId)) return false;
        if (!processInstanceId.equals(that.processInstanceId)) return false;
        if (!unit.equals(that.unit)) return false;
        if (!fromTime.equals(that.fromTime)) return false;
        if (!toTime.equals(that.toTime)) return false;
        return durationInHour.equals(that.durationInHour);

    }

    @Override
    public int hashCode() {
        int result = userId.hashCode();
        result = 31 * result + processInstanceId.hashCode();
        result = 31 * result + unit.hashCode();
        result = 31 * result + fromTime.hashCode();
        result = 31 * result + toTime.hashCode();
        result = 31 * result + durationInHour.hashCode();
        return result;
    }

    @Override
    protected TeacherProcessInstanceDTO clone() throws CloneNotSupportedException {
        return (TeacherProcessInstanceDTO) super.clone();
    }
}
